import { dataKeys } from './dataKeys';
import { useListen } from './useListen';

export const TestB = () => {
  const [testValue] = useListen(dataKeys.TEST);
  const [count] = useListen(dataKeys.COUNT);
  console.log('TestB');
  return (
    <div>
      <h2>Component B (Consumer)</h2>
      <p>Current Test Value: {testValue}</p>
      <p>Current Count: {count}</p>
    </div>
  );
};
